TQuery
IdeaBlade DevForce 2010 Help Reference
With<TQuery>(TQuery,EntityManager) Method
See Also  Example Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityQueryExtensions Class > With Method : With<TQuery>(TQuery,EntityManager) Method



query
em
Returns a clone of the query for the specified EntityManager.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Overloads Shared Function With(Of TQuery As IEntityQuery)( _
   ByVal query As TQuery, _
   ByVal em As EntityManager _
) As TQuery
Visual Basic (Usage)Copy Code
Dim query As TQuery
Dim em As EntityManager
Dim value As TQuery
 
value = EntityQueryExtensions.With(Of TQuery)(query, em)
C# 
[ExtensionAttribute()]
public static TQuery With<TQuery>( 
   TQuery query,
   EntityManager em
)
where TQuery: IEntityQuery
C++/CLI 
[ExtensionAttribute()]
public:
static TQuery^ Withgeneric<typename TQuery>
( 
   TQuery^ query,
   EntityManager^ em
) 
where TQuery: IEntityQuery

Parameters

query
em

Type Parameters

TQuery

Example

C#Copy Code
var mgr1 = new DomainModelEntityManager();
var query1 = mgr1.Customers.Where(c => c.Country == "UK");

var mgr2 = new DomainModelEntityManager();
var query2 = query1.With(mgr2);

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.